<?php

class ServiciosItinerarios {

	function ServiciosItinerarios(){
	
	}
	
	//GESTION DE ITINERARIOS
	
	function AddItinerary($googleUserId,$name,$description,$public){
	
		$wsdl = "http://api.quocity.com/QuocityPrivateService.svc";
		$soapClient = new SoapClient($wsdl); 
		
		$itinerary = array ('cityId' => 2,
							'Name' => $name,
							'GoogleUserId' => $googleUserId);
				  
		$retval = $soapClient->AddItinerary(array('itinerary' => $itinerary));
		$code = $retval->AddItineraryResult->ReturnCode;
		
		if ($code != -1 ) { 
		
				return true; 
		
			}
		
			else { 
		
				return false; 
		
		} 
		
		
	
		
	}
	
	

}

?>